Skip to content

Conversation

@nshahan
Copy link
Contributor

@nshahan nshahan commented Aug 2, 2021

Revert to attaching the IsolateRef instead of the Isolate to the postEvent
and registerExtension events. The Isolate is much larger and was causing
systems to run out of memory when event traffic is high like in Flutter
where they are sent on every animation frame.

See: flutter/flutter#87100

Revert to attaching the IsolateRef instead of the Isolate to the postEvent
and registerExtension events. The Isolate is much larger and was causing
systems to run out of memory when event traffic was high like in Flutter
where they are sent on every animation frame.

See: flutter/flutter#87100
@nshahan nshahan requested review from annagrin, bkonyi and grouma August 2, 2021 23:14
@google-cla google-cla bot added the cla: yes label Aug 2, 2021
Copy link
Contributor

@annagrin annagrin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Collaborator

@bkonyi bkonyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! In general, we should be sending reference types for high-traffic events, so this is perfect. Thanks!

@annagrin
Copy link
Contributor

annagrin commented Aug 3, 2021

Merging this so we can deliver the fix to flutter soon.

@annagrin annagrin merged commit b5f1214 into master Aug 3, 2021
@natebosch natebosch deleted the fix-oom-errors branch August 3, 2021 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants